]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Use nice Unicode for date formatting
authorMatthias Clasen <mclasen@redhat.com>
Thu, 29 Nov 2012 03:59:24 +0000 (22:59 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 12 Feb 2013 15:16:47 +0000 (10:16 -0500)
The ratio character is nicer aligned for this use than the
stock colon, and a thin space is all that is needed before am/pm.

https://bugzilla.gnome.org/show_bug.cgi?id=689251

js/ui/calendar.js

index 0cab1d65093da7ce8e591812e9240a3da17cbafd..313171dceb96a72bd259ced1fa823856ec9cdbe7 100644 (file)
@@ -62,15 +62,18 @@ function _formatEventTime(event, clockFormat) {
     } else {
         switch (clockFormat) {
         case '24h':
-            /* Translators: Shown in calendar event list, if 24h format */
-            ret = event.date.toLocaleFormat(C_("event list time", "%H:%M"));
+            /* Translators: Shown in calendar event list, if 24h format,
+               \u2236 is a ratio character, similar to : */
+            ret = event.date.toLocaleFormat(C_("event list time", "%H\u2236%M"));
             break;
 
         default:
             /* explicit fall-through */
         case '12h':
-            /* Transators: Shown in calendar event list, if 12h format */
-            ret = event.date.toLocaleFormat(C_("event list time", "%l:%M %p"));
+            /* Transators: Shown in calendar event list, if 12h format,
+               \u2236 is a ratio character, similar to : and \u2009 is
+               a thin space */
+            ret = event.date.toLocaleFormat(C_("event list time", "%l\u2236%M\u2009%p"));
             break;
         }
     }